﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;

namespace Models
{
  /// <summary>
  /// Class Category
  /// </summary>
  public class Category
  {
    public Category()
    {
      input_Date = Common.CcomFunction.GetCurrentDate();
      upd_Date = Common.CcomFunction.GetCurrentDate();
      del_Flg = Common.Constants.DEL_FLG_ON;
    }
    /// <summary>
    /// save info category id
    /// </summary>
    /// 
    [Key]
    public int  id { get; set; }
    /// <summary>
    /// Save short name
    /// </summary>
   
    public string short_Name { get; set; }
    /// <summary>
    /// save info category name
    /// </summary>
    public string name { get; set; }
    /// <summary>
    /// save info user id input
    /// </summary>
    //public string Input_Id { get; set; }
    /// <summary>
    /// save info input date (char(8) - YYYYMMDD)
    /// </summary>
    public DateTime input_Date { get; set; }
    /// <summary>
    /// save info date update (char(8) -YYYYMMDD)
    /// </summary>
    public DateTime upd_Date { get; set; }
    /// <summary>
    /// save info category delete or not
    /// </summary>
    public char del_Flg { get; set; }
    /// <summary>
    /// 
    /// </summary>
    public ICollection<Product> products { get; set; }
  }
}
